<!DOCTYPE html>
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/profil.css">
		<meta charset="UTF-8"/>
		<title>Mes Biens</title>
	</head>

	<body>
	<div id="infos">
			<?php
				$user =  mysqli_fetch_array($userList);
			?>
		<form action="profil_edit.php" method="post">
			<table style="color:white;" border="1" width="300">
				<tr>
					<td>Nom</td>
					<td><input type="text" name="nom" id="nom" value="<?php if(isset($user)) echo $user['user_nom']; ?>"required/></td>
				</tr>
				<tr>
					<td>Prénom</td>
					<td><input type="text" name="prenom" id="prenom" value="<?php if(isset($user)) echo $user['user_prenom']; ?>"required/></td>
				</tr>
				<tr>
					<td>Email</td>
					<td><input type="text" name="email" id="email" value="<?php if(isset($user)) echo $user['user_mail']; ?>"required/></td>
				</tr>
		
				<tr>
					<td>Password</td>
					<td><input type="password" name="pwd" id="pwd" value="" required/></td>
				</tr>
				<tr>
					<td>Confirmation du pwd</td>
					<td><input type="password" name="pwd2" id="pwd2" value="" required/></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" name="modifier" value ="Modifier" />
					</td>
				</tr>
			</table>
		</form>
		
	</div>
	</body>
</html>
